//
//  RFAAttributedStringValueTransformer.m
//  RFA Manager
//
//  Created by Torsten Kammer on 27.03.08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "RFAAttributedStringValueTransformer.h"


@implementation RFAAttributedStringValueTransformer

+ (Class)transformedValueClass;
{
	return [NSAttributedString class];
}
+ (BOOL)allowsReverseTransformation;
{
	return YES;
}

- (id)transformedValue:(id)value;
{
	return [[NSAttributedString alloc] initWithString:value attributes:[NSDictionary dictionaryWithObject:[NSFont userFixedPitchFontOfSize:-1.0f] forKey:NSFontAttributeName]];
}
- (id)reverseTransformedValue:(id)value;
{
	return [value string];
}

@end
